package com.ms.demo;

/**
 * @description: 创建一个User类
 * @author: ms
 * @create: 2022-10-28 10:45
 */
public class User {

    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }
}